<div ng-show="importErr" class="padding assertive" ng-click="importErr = null">
  <div translate>Could not access the wallet at the server. Please check:</div>
  <ul>
    <li translate>The password of the recovery phrase (if set)</li>
    <li translate>The derivation path</li>
    <li translate>The wallet service URL</li>
  </ul>
  <div translate>
    NOTE: To import a wallet from a 3rd party software, please go to Add Wallet &gt; Create Wallet, and specify the Recovery Phrase there.
  </div>
</div>

<form name="importForm12" ng-submit="importMnemonic(importForm12)" novalidate>
  <div class="list settings-list settings-input-group">
    <div>
      <label class="item item-input item-stacked-label no-border">
        <span class="input-label" translate>Type the Recovery Phrase (usually 12 words)</span>
          <textarea ng-model="formData.words"
                    rows="3"
                    autocapitalize="off"
                    autocomplete="off"
                    autocorrect="off"
                    spellcheck="false"></textarea>
      </label>
      <div class="qr-scan-icon">
        <qr-scanner class="qr-icon size-24" on-scan="processWalletInfo(data)"></qr-scanner>
      </div>
    </div>

    <div style="display:none" ng-include="'views/includes/cash.html'"></div>

    <div class="item item-divider"></div>

    <a class="item" ng-click="showAdvChange()">
      <span translate ng-show="!showAdv">Show advanced options</span>
      <span translate ng-show="showAdv">Hide advanced options</span>
    </a>

    <div ng-show="showAdv">
      <label class="item item-input item-stacked-label">
        <span class="input-label" translate>Password</span>
        <input type="password"
        placeholder="{{'The recovery phrase could require a password to be imported'|translate}}"
        autocapitalize="off"
        ng-model="formData.passphrase">
      </label>

      <label class="item item-input item-stacked-label">
        <span class="input-label" translate>Derivation Path</span>
        <input type="text"
        placeholder="{{'BIP32 path for address derivation'|translate}}"
        ng-model="formData.derivationPath">
      </label>

      <!--
      <ion-toggle ng-model="fromHardwareWallet.value" toggle-class="toggle-positive">
        <span class="toggle-label" translate>From Hardware Wallet</span>
      </ion-toggle>

      <label class="item item-input item-select" ng-if="fromHardwareWallet.value">
        <div class="input-label" translate>
          Wallet Type
        </div>
        <select class="m10t" ng-model="formData.seedSourceAll" ng-options="seed as seed.label for seed in seedOptionsAll"></select>
      </label>
      -->

      <ion-toggle style="display:none" ng-model="formData.testnetEnabled" ng-change="setDerivationPath()" toggle-class="toggle-positive" ng-if="formData.coin == 'btc'">
        <span translate>Testnet</span>
      </ion-toggle>


      <label style="display:none" class="item item-input item-stacked-label">
        <span class="input-label" translate>Wallet Service URL</span>
        <input type="text" ng-model="formData.bwsurl">
      </label>

    </div>
  </div>

  <button type="submit"
    class="button button-standard button-primary"
    ng-disabled="importForm12.$invalid" translate>Import
  </button>
</form>
